
<%-- 
    Document   : checkoutPlaceOrder
    Created on : Jul 2, 2012, 11:46:09 AM
    Author     : Owner
--%>

<%@include file="/jsp/top.jsp"%>

<html>
    <head>

        <title>Place Order</title>
    </head>
    <body>
        <div class="clear"></div>
        <table cellspacing="5px" width="100%" align="center">
            <tr>
                <td>
                    <table cellspacing="5px" width="100%" align="center">
                        <tr>                            
                            <td style="vertical-align: top;" width="100%">
                                <table align="center" border="1" cellspacing="10px" width="100%">
                                    <tr>
                                        <td colspan="4" align="center">
                                            <a href="#">
                                                <img alt="" src="images/1green.png"/>User Information
                                            </a>
                                            <img alt="" src="images/pb_arrow.gif"/>
                                            <a href="#">
                                                <img alt="" src="images/2green.png"/>Address
                                            </a>
                                            <img alt="" src="images/pb_arrow.gif"/>
                                            <a href="./checkout.do?action=checkoutUserAddress&userId=<%=session.getAttribute("loginUserId")%>">
                                                <img alt="" src="images/3green.png"/>Payment & Delivery
                                            </a>
                                            <img alt="" src="images/pb_arrow.gif"/>
                                            <img alt="" src="images/4black.png"/> Place Order
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <div class="page-title"><h1>4. Place Order</h1></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <logic:present name="userAddressInfo" scope="request">
                                            <% int i = 0;%>
                                            <logic:iterate id="addressInfo" name="userAddressInfo" scope="request">
                                                <%i++;%>
                                                <% if (i == 1) {%>
                                                <td><strong>Billing Address :</strong></td>
                                                <td>
                                                    <bean:write name="addressInfo" property="addrFullName"/><br/>
                                                    <bean:write name="addressInfo" property="house"/><br/>
                                                    <bean:write name="addressInfo" property="street"/><br/>
                                                    <bean:write name="addressInfo" property="city"/> &nbsp; <bean:write name="addressInfo" property="pinCode"/> &nbsp; <bean:write name="addressInfo" property="state"/><br/>
                                                    <bean:write name="addressInfo" property="contact"/>
                                                </td>
                                                <%} else if (i == 2) {%>
                                                <td><strong>Delivery Address</strong></td>
                                                <td>
                                                    <bean:write name="addressInfo" property="addrFullName"/><br/>
                                                    <bean:write name="addressInfo" property="house"/><br/>
                                                    <bean:write name="addressInfo" property="street"/><br/>
                                                    <bean:write name="addressInfo" property="city"/> &nbsp; <bean:write name="addressInfo" property="pinCode"/> &nbsp; <bean:write name="addressInfo" property="state"/><br/>
                                                    <bean:write name="addressInfo" property="contact"/>
                                                </td>
                                                <%}%>
                                            </logic:iterate>
                                        </logic:present>
                                    </tr>
                                    <tr>
                                        <logic:present name="paymentType" scope="request">
                                            <td><strong>Payment Method:</strong></td>
                                            <td colspan="3"><bean:write name="paymentType"/></td>
                                        </logic:present>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <table align="center" cellspacing="10px" width="100%">
                                                <tr>
                                                    <td>
                                                        <strong>Products in your Order</strong>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Item</td>
                                                    <td>Name</td>
                                                    <td>Price</td>
                                                    <td>Quantity</td>
                                                    <td>Sub Total</td>
                                                </tr>
                                                <logic:present name="productCartList" scope="request">
                                                    <logic:iterate id="cartProducts" name="productCartList" scope="request">
                                                        <tr>
                                                            <td style="vertical-align: top;"><img alt="<bean:write name="cartProducts" property="productName"/>" src="products/<bean:write name="cartProducts" property="productSmallImageName"/>" width="50" height="50"/></td>
                                                            <td><bean:write name="cartProducts" property="productName"/></td>
                                                            <td>Rs. <bean:write name="cartProducts" property="productPrice"/></td>
                                                            <td><strong>X</strong>&nbsp;<bean:write name="cartProducts" property="addToCartQty"/></td>
                                                            <td>Rs. <bean:write name="cartProducts" property="productSubTotal"/></td>
                                                        </tr>
                                                    </logic:iterate>
                                                </logic:present>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4"><hr/></td>
                                    </tr>
                                    <logic:present name="paydelDetail" scope="request">
                                        <tr>
                                            <td align="right" colspan="4">
                                                <ul style="text-align: right;">
                                                    <li>
                                                        Total Item:<bean:write name="paydelDetail" property="totalItem"/>
                                                    </li>
                                                    <li>
                                                        Sub Total: &nbsp; Rs.<bean:write name="paydelDetail" property="paydelSubTotal" />
                                                    </li>
                                                    <li>
                                                        Shipping Cost :&nbsp; Rs.<bean:write name="paydelDetail" property="shippingCost"/>
                                                    </li>
                                                    <li>
                                                        Total :&nbsp; Rs.<bean:write name="paydelDetail" property="paydelTotal"/>
                                                    </li>
                                                </ul>
                                            </td>
                                        </tr>
                                    </logic:present>
                                    <tr>
                                        <td align="right" colspan="4">
                                            <a href="./payment.do?action=placeOrder">
                                                <img src="images/placeorder.png" alt="Place Order" onmouseout="src='images/placeorder.png'" onmouseover="src='images/placeorder.png'"/>
                                            </a>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td><%@include file="/jsp/footer.jsp" %></td>
            </tr>
        </table>
    </body>
</html>
